

//
//  MBCoCell.m
//  tableview多按钮选择
//
//  Created by MB__Lee on 2018/5/17.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBCoCell.h"
#import "UIView+MBInframe.h"


@interface MBCoCell()

@property (weak, nonatomic) IBOutlet UILabel *cLabel;


@end


@implementation MBCoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.layer.cornerRadius = 1;
    self.clipsToBounds = YES;
    self.layer.borderWidth = 0.3;
    self.layer.borderColor = MBLineColor.CGColor;
    self.cLabel.textColor = MBLineColor;
    
    
    
}
-(void)setTitle:(NSString *)title{
    
    _title = title;
    
    self.cLabel.text = title;
}

-(void)selectedCell{
    self.cLabel.backgroundColor = MB_mainSelectedColor;
    self.cLabel.textColor = [UIColor whiteColor];
}
-(void)deselectedCell{
    self.cLabel.backgroundColor = [UIColor whiteColor];
    self.cLabel.textColor = MBLineColor;
}







@end
